<?php session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<META HTTP-EQUIV="Window-target" CONTENT="_top">
<META NAME="ROBOTS" CONTENT="NOINDEX,FOLLOW,NOIMAGEINDEX,NOIMAGECLICK">
<title>aidiCMS : Control Panel</title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo DIR_PATH; ?>themes/admin-v2/style.css" />
<script type="text/javascript" src="<?php echo DIR_PATH; ?>libs/jquery.js"></script> 
<script type="text/javascript" src="<?php echo DIR_PATH; ?>libs/jquery.form.js"></script>
<script type="text/javascript" src="<?php echo DIR_PATH; ?>libs/jquery.metadata.js"></script>
<script type="text/javascript" src="<?php echo DIR_PATH; ?>libs/jquery.delegate.js"></script>
<script type="text/javascript" src="<?php echo DIR_PATH; ?>libs/jquery.ajaxQueue.js"></script>
<script type="text/javascript" src="<?php echo DIR_PATH; ?>libs/jquery.validate.js"></script>
<script language="javascript">
	$.validator.setDefaults({
		submitHandler: function() { document.submit(); }
	});
	
	$().ready(function() {	
		// validate login form on keyup and submit
		$("#loginForm").validate({
			rules: {
				username: { required: true },
				password: {	required: true }
			},
			messages: {
				password: " <?php echo $DEV_ADMIN_EMPTY_USERNAME; ?>",
				username: " <?php echo $DEV_ADMIN_EMPTY_PASSWORD; ?>"
			}
		});
	});
</script>
</head>
<body>
<?php
if (isset($_SESSION['sesi_ver'])) {
	echo '<div class="messages valid">'.$_SESSION['sesi_ver'].'</div>';
	unset($_SESSION['sesi_ver']);
}
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="380" align="center" style="padding-top:0px; padding-bottom:0px"><form action="modul/core/ver_admin.php?filename=home?show=admin" method="post" name="loginForm" id="loginForm">
      <table class="imagesSUB" border="0" cellpadding="4" cellspacing="1">
        <tr>
          <td colspan="2">
            <div align="center"><a href="<?php echo DIR_PATH; ?>"><img src="../../images/aidiCMS.png" width="150" alt="aidiCMS" /></a></div></td>
        </tr>
        <tr>
          <td nowrap="nowrap"><div align="left"><?php echo $DEV_ADMIN_USERNAME; ?>:</div>
            <div align="left">
              <input name="username" type="text" id="username" maxlength="32" />
            </div></td>
        </tr>
        <tr>
          <td nowrap="nowrap"><div align="left"><?php echo $DEV_ADMIN_PASSWORD; ?>:</div>
            <div align="left">
              <input name="password" type="password" id="password" maxlength="32" />
            </div></td>
        </tr>
        <tr>
          <td><div align="center">
            <input type="hidden" name="val" id="val" value="login"  />            
            <input type="submit" class="submit" value="<?php echo $DEV_ADMIN_LOGIN_SUBMIT; ?>"  />
          </div></td>
          </tr>
      </table>
      <br />
      <div align="center" id="footer_login"><?php echo footer(); ?></div>
    </form></td>
  </tr>
</table>
</body>
</html>